using OpenQA.Selenium.Edge;
using OpenQA.Selenium;
using System.IO;

EdgeOptions option = new EdgeOptions();
EdgeDriverService driverService = EdgeDriverService.CreateDefaultService(Path.GetDirectoryName(@"msedgedriver.exe"));
IWebDriver web = new EdgeDriver(driverService, option);
web.Navigate().GoToUrl("https://www.baidu.com");

IWebElement web1 = web.FindElement(By.XPath(""));
web1.Click();

web.Quit();